package com.heima.model.wemedia.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(" wm_news_material")
public class WmNewsMaterial implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 素材id
     */
    @TableField("material_id")
    private Long materialId;

    /**
     * 图文id
     */
    @TableField("news_id")
    private Long newsId;

    /**
     * 引用类型 0内容引用 1主图引用
     */
    @TableField("type")
    private Short type;
    /**
     * 引用排序
     */
    @TableField( "ord")
    private Integer ord;
}
